<?php 
class Commons {
	
	public $MAX_RESULTS = 5;
	public $MAX_RESTO = 15;
	public function createPagingConfig($base_url = '/', $total = 0, $max_results = 5)
	{
		$config['full_tag_open'] = '<div class="pagination pagination-centered"><ul>';
		$config['full_tag_close'] = '</ul></div>';
		$config['first_link'] = '&larr; First';
		$config['last_link'] = 'Last &rarr;';
		$config['first_tag_open'] = '<li>';
		$config['first_tag_close'] = '</li>';
		$config['last_tag_open'] = '<li>';
		$config['last_tag_close'] = '</li>';
		$config['next_link'] = '&raquo;';
		$config['next_tag_open'] = '<li class="next">';
		$config['next_tag_close'] = '</li>';
		$config['prev_link'] = '&laquo;';
		$config['prev_tag_open'] = '<li class="previous">';
		$config['prev_tag_close'] = '</li>';
		$config['cur_tag_open'] = '<li class="active"><span>';
		$config['cur_tag_close'] = '</span></li>';
		$config['num_tag_open'] = '<li>';
		$config['num_tag_close'] = '</li>';
		$config['base_url'] = $base_url;
		$config['total_rows'] = $total;
		$config['per_page'] = $max_results;
		return $config;
	}
}